#include"poll_server.hpp"
//  启动方式:  ./server 端口号 
//  比如:      ./server 8888
int main(int argc,char* argv[]){
    if(argc<2){
        LOG(ERROR)<<"USAGE: ./server port";
        return 1;
    }
    uint16_t port=std::stoi(argv[1]);
    std::unique_ptr<server> s_svr=std::make_unique<server>(port);

    s_svr->init();
    s_svr->start();
    return 0;    
}